package top.linyuxb.lycloud.config.starter.dto;

import lombok.*;
import top.linyuxb.lycloud.config.starter.common.ChangeTypeEnum;

import java.lang.reflect.Method;

/**
 * Created by Intellij IDEA.
 *
 * @Author: linyuxb
 * @Date: 2024/6/13 16:41
 * @Desc: 字段变化任务监听
 */
@Getter
@Setter
@Builder
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class LyConfigListenerDto {
    /**
     * 当前环境
     */
    private String env;
    /**
     * 服务key
     */
    private String app;

    /**
     * 监听属性key集合
     */
    private String[] keys;
    /**
     * 值变化类型
     */
    private ChangeTypeEnum changeTypeEnum;
    /**
     * spring bean
     */
    private Object bean;
    /**
     * 字段名称
     */
    private Method method;
}
